package com.juxing.webserver.common;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.juxing.service.configCenter.bean.ActivityBean;

@Component
public class ConfigHelper {

	public List<ActivityBean> queryActivity() {
		List<ActivityBean> activityList = new ArrayList<ActivityBean>();
		
		for(int i = 1; i < 10; i++) {
			ActivityBean bean = new ActivityBean();
			bean.setId(i);
			bean.setName("测试活动" + i);
			bean.setStartTime(System.currentTimeMillis() - 86400000);
			bean.setEndTime(System.currentTimeMillis() + 86400000);
			bean.setBgUrl("http://pic13.nipic.com/20110415/1347158_132411659346_2.jpg");
			bean.setType(1);
			bean.setH5Url("");
			activityList.add(bean);
		}
		
		return activityList;
	}
}
